package com.genntii.examManager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.genntii.examManager.domain.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;

@Mapper
public interface TeacherMapper extends BaseMapper<Teacher> {

    ArrayList<Teacher> selectTeacherBatch(ArrayList<Long> teacherIds,
                                          Long userId);

    ArrayList<Teacher> getTacherBatch(ArrayList<Long> teacherIds);

    @Select("select * from teacher where user_id = #{userId}")
    Teacher getTeacherByUserId(@Param("userId") Long userId);

}
